package services;

import java.io.Serializable;
import java.util.Collection;

public interface GenericService<E, ID extends Serializable> {
	
	E persist(E entity);
	
	boolean deleteById(ID id);
	
	E findById(ID id);
	
	Collection<E> find(E entity);

	Collection<E> findAll();
	
	E getFirst();
	
	int countAll();
}